import java.util.Scanner;

public class Demo8 {
    public static void main(String[] args) {
        boolean flg = false;
        Thread thread = new Thread(() -> {
            while (!flg) {
                System.out.println("hello thread");
            }
        });
        thread.start();
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        System.out.println("hello main");
    }
}
